﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Model.BusinessLogic.PhysicalData
{
    /// <summary>
    ///     第三方
    /// </summary>
    public class OAuthAccount
    {
        /// <summary>
        ///     QQ
        /// </summary>
        public static readonly Int32 OTqq = 0;

        /// <summary>
        ///     WeChat
        /// </summary>
        public static readonly Int32 OTwc = 1;


        /// <summary>
        ///     OpenId由第三方提供
        /// 验证唯一：OpenId + OAuthType 进行联合验证
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public String OpenId { get; set; }

        /// <summary>
        ///     用户唯一标识
        /// </summary>
        public Guid MemberShipGuid { get; set; }

        /// <summary>
        ///     第三方类型
        /// </summary>
        public Int32 OAuthType { get; set; }

    }
}
